# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=lightblue
pkgver=0.4
pkgrel=4
pkgdesc='A cross-platform Bluetooth API for Python which provides simple access to Bluetooth operations'
arch=('x86_64' 'aarch64')
url='http://lightblue.sourceforge.net/'
license=('GPL')
depends=('python2' 'bluez-libs' 'openobex')
source=("http://ufpr.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz")
sha512sums=('aa1446bacc1a75492e9bd604a41f89b72144642e029066f1d5ab85410f701a3c7e45bad9f4a33be1b3c65ac5525e0c9ab0f0fcaa0481795bc412d9e8bd97dac0')

build() {
  cd "$pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

